import java.io.FileWriter;
import java.io.IOException;
public class FileWriters {
    String filename = "";

    public boolean writeFile(String filename, String content) {
        filename = filename + ".txt";
        try {
            FileWriter writer = new FileWriter(filename);
            writer.write(content);
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return true;
    }
}
